import QtQuick 2.0

Rectangle{
    property string searchText: null
    width: textComponent.contentWidth+10*dp
    height: textComponent.contentHeight+6*dp
    color: "transparent"

    Rectangle{
        width: textComponent.contentWidth+4*dp
        height: textComponent.contentHeight+2*dp
        anchors.centerIn: parent
        radius: 6*dp
        color: "#ADBABABA"

        Text {
            id: textComponent
            text: searchText
            color: "white"
            anchors.centerIn: parent
            font.pointSize: 14*dp
        }
    }
}
